package phoneO2O;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.apache.commons.beanutils.BeanMap;
import org.bao.bean.shoppingcarBean;
import org.bao.bean.usermessageBean;

public class test {

	public static void main(String[] args) {
		String strphoneId = "";
		String strphoneNum = "";

		shoppingcarBean carB1 = new shoppingcarBean(1, 22);
		carB1.setShoppnum(4);
		shoppingcarBean carB2 = new shoppingcarBean(1, 41);
		carB2.setShoppnum(2);

		List<Object> lis = new ArrayList<Object>();
		lis.add(carB1);
		

		System.out.println(lis);

		Object[] arr = lis.toArray();
		
		for (Object userB : arr) {
			
			usermessageBean userBB = (usermessageBean) userB;
		}
		
		
//		Iterator it = lis.iterator();
//		while (it.hasNext()) {
//
//			shoppingcarBean CarB = (shoppingcarBean) it.next();
//
//			System.out.println(CarB);
//
//			strphoneId = strphoneId + CarB.getShoppid() + ",";
//			strphoneNum = strphoneNum + CarB.getShoppnum() + ",";
//
////	
//
//		}
//		strphoneId = strphoneId.substring(0, strphoneId.length() - 1);
//		strphoneNum = strphoneNum.substring(0, strphoneNum.length() - 1);
//
//		System.out.println("strphoneId:" + strphoneId + ";strphoneNum:" + strphoneNum);

	}

}
